//
//  MASTableViewBasicCell.m
//  MasonryExample
//
//  Created by 山刘 on 2020/6/11.
//  Copyright © 2020 山刘. All rights reserved.
//

#import "MASTableViewBasicCell.h"

@implementation MASTableViewBasicCell
+(NSString*)reuseIdentifier{
    return NSStringFromClass([self class]);
}

+(instancetype)cellWithTableView:(UITableView*)tableView indexPath:(NSIndexPath*)indexPath{
    MASTableViewBasicCell *cell = [tableView dequeueReusableCellWithIdentifier:[self reuseIdentifier]];
    if (!cell) {
        cell = [[self alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:[self reuseIdentifier]];
    }
    cell.indexPath = indexPath;
    return cell;
}

+(BOOL)requiresConstraintBasedLayout{
    return YES;
}

-(void)updateData{
    NSLog(@"%s",__func__);
}

-(void)setCellData:(TableViewDataModelBodyVO *)cellData{
    _cellData = cellData;
    if (!cellData) return;
    [self updateData];
}
@end
